package com.ruoyi.region.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户角色关联信息对象 t_region_user_role
 * 
 * @author ruoyi
 * @date 2024-12-14
 */
public class TRegionUserRole extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 角色ID */
    @Excel(name = "角色ID")
    private Long roleId;

    /** 省编号 */
    @Excel(name = "省编号")
    private String provinceCode;

    /** 省名字 */
    @Excel(name = "省名字")
    private String provinceName;

    /** 市编号 */
    @Excel(name = "市编号")
    private String cityCode;

    /** 市 */
    @Excel(name = "市")
    private String cityName;

    /** 区县编号 */
    @Excel(name = "区县编号")
    private String areaCode;

    /** 区/县 */
    @Excel(name = "区/县")
    private String areaName;

    /** 乡镇名称 */
    @Excel(name = "乡镇名称")
    private String townName;

    /** 乡镇编码 */
    @Excel(name = "乡镇编码")
    private String townCode;

    /** 数据状态（作为逻辑删除，0为正常-1为删除） */
    @Excel(name = "数据状态", readConverterExp = "作=为逻辑删除，0为正常-1为删除")
    private Long status;

    /** 北斗角色id */
    @Excel(name = "北斗角色id")
    private String beiRoleId;

    /** 北斗用戶id */
    @Excel(name = "北斗用戶id")
    private String beiUserId;


    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setRoleId(Long roleId) 
    {
        this.roleId = roleId;
    }

    public Long getRoleId() 
    {
        return roleId;
    }
    public void setProvinceCode(String provinceCode) 
    {
        this.provinceCode = provinceCode;
    }

    public String getProvinceCode() 
    {
        return provinceCode;
    }
    public void setProvinceName(String provinceName) 
    {
        this.provinceName = provinceName;
    }

    public String getProvinceName() 
    {
        return provinceName;
    }
    public void setCityCode(String cityCode) 
    {
        this.cityCode = cityCode;
    }

    public String getCityCode() 
    {
        return cityCode;
    }
    public void setCityName(String cityName) 
    {
        this.cityName = cityName;
    }

    public String getCityName() 
    {
        return cityName;
    }
    public void setAreaCode(String areaCode) 
    {
        this.areaCode = areaCode;
    }

    public String getAreaCode() 
    {
        return areaCode;
    }
    public void setAreaName(String areaName) 
    {
        this.areaName = areaName;
    }

    public String getAreaName() 
    {
        return areaName;
    }
    public void setTownName(String townName) 
    {
        this.townName = townName;
    }

    public String getTownName() 
    {
        return townName;
    }
    public void setTownCode(String townCode) 
    {
        this.townCode = townCode;
    }

    public String getTownCode() 
    {
        return townCode;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public String getBeiRoleId() {
        return beiRoleId;
    }

    public void setBeiRoleId(String beiRoleId) {
        this.beiRoleId = beiRoleId;
    }

    public String getBeiUserId() {
        return beiUserId;
    }

    public void setBeiUserId(String beiUserId) {
        this.beiUserId = beiUserId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("roleId", getRoleId())
            .append("provinceCode", getProvinceCode())
            .append("provinceName", getProvinceName())
            .append("cityCode", getCityCode())
            .append("cityName", getCityName())
            .append("areaCode", getAreaCode())
            .append("areaName", getAreaName())
            .append("townName", getTownName())
            .append("townCode", getTownCode())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())

            .toString();
    }
}
